<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="searchresults.aspx.cs" Inherits="searchresults" Title="Search Result" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h3 id="title">Your search result :</h3>
    <asp:Repeater runat="server" ID="rp">
        <ItemTemplate>
            <table cellpadding="20px">
                <tr>
                    <td>
                        <asp:HyperLink ID="hlProductName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ProductName") %>' 
                             NavigateUrl='<%# "productdetail.aspx?readID=" + DataBinder.Eval(Container.DataItem, "ProductID") %>' />
                    </td>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "UnitPrice", "{0:C}") %>' />
                    </td>
                    <td>
                        <asp:Image ID="Label2" runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "Picture") %>' Width="140px" Height="120px" />
                    </td>
                </tr>
            </table>

        </ItemTemplate>
    </asp:Repeater>

</asp:Content>

